Skip to contentSkip to conversation

Add the mpc8641 hpcn Kconfig and Makefiles.

PATCH In review Jon Loeliger 2 participants 2 messages Jun 17, 2006 – Jun 18, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/9 Add the mpc8641 hpcn Kconfig and Makefiles.

---

 arch/powerpc/Kconfig                 |   15 ++++++++++++--
 arch/powerpc/platforms/Makefile      |    1 +
 arch/powerpc/platforms/86xx/Kconfig  |   36 ++++++++++++++++++++++++++++++++++
 arch/powerpc/platforms/86xx/Makefile |   10 +++++++++
 4 files changed, 60 insertions(+), 2 deletions(-)
arch/powerpc/Kconfig +13 -2
index 4ef2478..65f4cd1 100644
@@ -141,6 +141,15 @@ config PPC_85xx
 	select FSL_SOC
 	select 85xx
 
+config PPC_86xx
+	bool "Freescale 86xx"
+	select 6xx
+	select FSL_SOC
+	select PPC_FPU
+	select ALTIVEC
+	help
+	  The Freescale E600 SoCs have 74xx cores.
+
 config 40x
 	bool "AMCC 40x"
 
@@ -549,6 +558,7 @@ source arch/powerpc/platforms/embedded6x
 source arch/powerpc/platforms/4xx/Kconfig
 source arch/powerpc/platforms/83xx/Kconfig
 source arch/powerpc/platforms/85xx/Kconfig
+source arch/powerpc/platforms/86xx/Kconfig
 source arch/powerpc/platforms/8xx/Kconfig
 source arch/powerpc/platforms/cell/Kconfig
 
@@ -780,6 +790,7 @@ config GENERIC_ISA_DMA
 
 config PPC_I8259
 	bool
+	default y if MPC8641_HPCN
 	default n
 
 config PPC_INDIRECT_PCI
@@ -802,8 +813,8 @@ config MCA
 	bool
 
 config PCI
-	bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES)
-	default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx && !PPC_85xx
+	bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES)
+	default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx && !PPC_85xx && !PPC_86xx
 	default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
 	default PCI_QSPAN if !4xx && !CPM2 && 8xx
 	help
arch/powerpc/platforms/Makefile +1 -0
index c4f6b0d..2928636 100644
@@ -9,6 +9,7 @@ obj-$(CONFIG_PPC_CHRP)		+= chrp/
 obj-$(CONFIG_4xx)		+= 4xx/
 obj-$(CONFIG_PPC_83xx)		+= 83xx/
 obj-$(CONFIG_PPC_85xx)		+= 85xx/
+obj-$(CONFIG_PPC_86xx)		+= 86xx/
 obj-$(CONFIG_PPC_PSERIES)	+= pseries/
 obj-$(CONFIG_PPC_ISERIES)	+= iseries/
 obj-$(CONFIG_PPC_MAPLE)		+= maple/
arch/powerpc/platforms/86xx/Kconfig new file +36 -0
new file mode 100644
index 0000000..3a87863
@@ -0,0 +1,36 @@
+menu "Platform Support"
+	depends on PPC_86xx
+
+choice
+	prompt "Machine Type"
+	default MPC8641_HPCN
+
+config MPC8641_HPCN
+	bool "Freescale MPC8641 HPCN"
+	help
+	  This option enables support for the MPC8641 HPCN board.
+
+endchoice
+
+
+config MPC8641
+	bool
+	select PPC_INDIRECT_PCI
+	select PPC_UDBG_16550
+	default y if MPC8641_HPCN
+
+config MPIC
+	bool
+	default y
+
+config PPC_INDIRECT_PCI_BE
+	bool
+	depends on PPC_86xx
+	default y
+
+config PPC_STD_MMU
+	bool
+	depends on PPC_86xx
+	default y
+
+endmenu
arch/powerpc/platforms/86xx/Makefile new file +10 -0
new file mode 100644
index 0000000..7be796c
@@ -0,0 +1,10 @@
+#
+# Makefile for the PowerPC 86xx linux kernel.
+#
+
+
+ifeq ($(CONFIG_PPC_86xx),y)
+obj-$(CONFIG_SMP)		+= mpc86xx_smp.o
+endif
+obj-$(CONFIG_MPC8641_HPCN)	+= mpc86xx_hpcn.o
+obj-$(CONFIG_PCI)		+= pci.o mpc86xx_pcie.o
#1 lore raw
Quoted 41 lines · Jon Loeliger

---

 arch/powerpc/Kconfig                 |   15 ++++++++++++--
 arch/powerpc/platforms/Makefile      |    1 +
 arch/powerpc/platforms/86xx/Kconfig  |   36 +++++++++++++++++++++++ 
+++++++++++
 arch/powerpc/platforms/86xx/Makefile |   10 +++++++++
 4 files changed, 60 insertions(+), 2 deletions(-)
arch/powerpc/Kconfig +10 -0
index 4ef2478..65f4cd1 100644
@@ -141,6 +141,15 @@ config PPC_85xx
 	select FSL_SOC
 	select 85xx
 
+config PPC_86xx
+	bool "Freescale 86xx"
+	select 6xx
+	select FSL_SOC
+	select PPC_FPU
+	select ALTIVEC
+	help
+	  The Freescale E600 SoCs have 74xx cores.
+
 config 40x
 	bool "AMCC 40x"
 
@@ -549,6 +558,7 @@ source arch/powerpc/platforms/embedded6x
 source arch/powerpc/platforms/4xx/Kconfig
 source arch/powerpc/platforms/83xx/Kconfig
 source arch/powerpc/platforms/85xx/Kconfig
+source arch/powerpc/platforms/86xx/Kconfig
 source arch/powerpc/platforms/8xx/Kconfig
 source arch/powerpc/platforms/cell/Kconfig
 

arch/powerpc/Kconfig config GENERIC_ISA_DMA · line 794

Quoted 5 lines
arch/powerpc/Kconfig +1 -0
@@ -780,6 +790,7 @@ config GENERIC_ISA_DMA
 
 config PPC_I8259
 	bool
+	default y if MPC8641_HPCN
 	default n

Can you change this into a select under the config MPC8641_HPCN menu?

Quoted 59 lines
arch/powerpc/Kconfig +0 -2
 config PPC_INDIRECT_PCI
@@ -802,8 +813,8 @@ config MCA
 	bool
 
 config PCI
-	bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx ||  
 PPC_MPC52xx || (EMBEDDED && PPC_ISERIES)
-	default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx && ! 

PPC_85xx

arch/powerpc/Kconfig +1 -0
+	bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx ||  

PPC_86xx || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES)

arch/powerpc/Kconfig +1 -0
+	default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx && ! 

PPC_85xx && !PPC_86xx

arch/powerpc/Kconfig +0 -0
 	default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
 	default PCI_QSPAN if !4xx && !CPM2 && 8xx
 	help
arch/powerpc/platforms/Makefile +1 -0
index c4f6b0d..2928636 100644
@@ -9,6 +9,7 @@ obj-$(CONFIG_PPC_CHRP)		+= chrp/
 obj-$(CONFIG_4xx)		+= 4xx/
 obj-$(CONFIG_PPC_83xx)		+= 83xx/
 obj-$(CONFIG_PPC_85xx)		+= 85xx/
+obj-$(CONFIG_PPC_86xx)		+= 86xx/
 obj-$(CONFIG_PPC_PSERIES)	+= pseries/
 obj-$(CONFIG_PPC_ISERIES)	+= iseries/
 obj-$(CONFIG_PPC_MAPLE)		+= maple/
arch/powerpc/platforms/86xx/Kconfig new file +24 -0
new file mode 100644
index 0000000..3a87863
@@ -0,0 +1,36 @@
+menu "Platform Support"
+	depends on PPC_86xx
+
+choice
+	prompt "Machine Type"
+	default MPC8641_HPCN
+
+config MPC8641_HPCN
+	bool "Freescale MPC8641 HPCN"
+	help
+	  This option enables support for the MPC8641 HPCN board.
+
+endchoice
+
+
+config MPC8641
+	bool
+	select PPC_INDIRECT_PCI
+	select PPC_UDBG_16550
+	default y if MPC8641_HPCN
+
+config MPIC
+	bool
+	default y

arch/powerpc/platforms/86xx/Kconfig line 34

Quoted 10 lines
arch/powerpc/platforms/86xx/Kconfig new file +10 -0
+
+config PPC_INDIRECT_PCI_BE
+	bool
+	depends on PPC_86xx
+	default y
+
+config PPC_STD_MMU
+	bool
+	depends on PPC_86xx
+	default y

this seems redundant, having 6xx should get this for you already.

Quoted 8 lines
arch/powerpc/platforms/86xx/Kconfig new file +2 -0
+
+endmenu
arch/powerpc/platforms/86xx/Makefile new file +0 -0
new file mode 100644
index 0000000..7be796c

arch/powerpc/platforms/86xx/Makefile line 8

Quoted 8 lines
arch/powerpc/platforms/86xx/Makefile new file +8 -0
@@ -0,0 +1,10 @@
+#
+# Makefile for the PowerPC 86xx linux kernel.
+#
+
+
+ifeq ($(CONFIG_PPC_86xx),y)
+obj-$(CONFIG_SMP)		+= mpc86xx_smp.o
+endif

isn't the ifeq redundant, we would only parse this Makefile if we were CONFIG_PPC_86xx

Quoted 6 lines
arch/powerpc/platforms/86xx/Makefile new file +2 -0
+obj-$(CONFIG_MPC8641_HPCN)	+= mpc86xx_hpcn.o
+obj-$(CONFIG_PCI)		+= pci.o mpc86xx_pcie.o

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev