powerpc/fsl-booke: Fixup calc_cam_sz to support MMU v2
authorKumar Gala <galak@kernel.crashing.org>
Thu, 5 Jan 2012 18:37:16 +0000 (12:37 -0600)
committergalak <galak@spiff.(none)>
Thu, 15 Mar 2012 17:12:19 +0000 (12:12 -0500)
commitf0b8b3417d836f89d873f6d5de43d54f02cb11e2
tree754f4a23cddc0d216c343e584b6d43195224545b
parentcb41fa024e0cc306472c1c08c93758263724d0e8
powerpc/fsl-booke: Fixup calc_cam_sz to support MMU v2

The registers that describe size supported by TLB are different on MMU
v2 as well as we support power of two page sizes.  For now we continue
to assume that FSL variable size array supports all page sizes up to the
maximum one reported in TLB1PS.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/mm/fsl_booke_mmu.c