Split out asm-ppc/mmu.h portions for PowerPC 8xx
arch/powerpc still relies on asm-ppc/mmu.h for some 32-bit MMU types. This patch is another step towards fixing this. It takes the portions of asm-ppc/mmu.h related to 8xx embedded CPUs which are still relevant in arch/powerpc and puts them in a new asm-powerpc/mmu-8xx.h, included when appropriate from asm-powerpc/mmu.h.
---
This applies on top of my earlier patch splitting out the Freescale Book-E portions of mmu.h. I've compiled this (with mpc866_ads_defconfig) but can someone with access to an 8xx system give it a whirl?
include/asm-powerpc/mmu.h +3 -4
@@ -14,10 +14,9 @@#elif defined(CONFIG_FSL_BOOKE )/* Freescale Book-E software loaded TLB */ # include <asm/mmu-fsl-booke.h> -#else -/* Other 32-bit. FIXME: split up the other 32-bit MMU types, and -* revise for arch/powerpc */ -# include <asm-ppc/mmu.h> +#elif defined (CONFIG_PPC_8xx) +/* Motorola/Freescale 8xx software loaded TLB */ +# include <asm/mmu-8xx.h> #endif #endif /* __KERNEL__ */
include/asm-powerpc/mmu-8xx.h new file +147 -0
147 lines not on this page · raw message
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 6 lines · David Gibson
arch/powerpcstill relies onasm-ppc/mmu.hfor some 32-bit MMU types. This patch is another step towards fixing this. It takes the portions ofasm-ppc/mmu.hrelated to 8xx embedded CPUs which are still relevant inarch/powerpcand puts them in a newasm-powerpc/mmu-8xx.h, included when appropriate fromasm-powerpc/mmu.h.
Quoted 7 lines
Signed-off-by David Gibson <[email protected]>---
This applies on top of my earlier patch splitting out the Freescale Book-E portions of
mmu.h. I've compiled this (withmpc866_ads_defconfig) but can someone with access to an 8xx system give it a whirl?
I tested it on an 885 board; it seems fine.
-Scott