Skip to contentSkip to conversation

Split out asm-ppc/mmu.h portions for PowerPC 8xx

PATCH David Gibson 2 participants 2 messages Jun 22, 2007

lore
Share & tools
lore
#0 lore raw

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
Index: working-2.6/include/asm-powerpc/mmu.h
===================================================================
@@ -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
#1 lore raw
Quoted 6 lines · David Gibson

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.

Quoted 7 lines

---

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?

I tested it on an 885 board; it seems fine.

-Scott