Re: [PATCH] Add AMCC Arches 460GT eval board support to platforms/44x
From: Josh Boyer <hidden>
Date: 2008-07-16 11:50:25
On Tue, 15 Jul 2008 22:33:26 -0700 fkan@amcc.com wrote:
From: Victor Gallardo <redacted> =20 ppc4xx: Add AMCC Arches 460GT eval board support=20 =20 Signed-off-by: Victor Gallardo <redacted>
=46rom what I can tell, you don't even need this patch or the defconfig. Nothing differs at this point from Glacier other than the DTS. Since U-Boot is your loader, it should be able to pass the different DTS to a kernel that supports Cayonlands and have no issues.
--- arch/powerpc/platforms/44x/Kconfig | 18 ++++++++ arch/powerpc/platforms/44x/Makefile | 1 + arch/powerpc/platforms/44x/arches.c | 76 +++++++++++++++++++++++++++++=
++++++
quoted hunk ↗ jump to hunk
3 files changed, 95 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/platforms/44x/arches.c =20diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/=
44x/Kconfig
quoted hunk ↗ jump to hunk
index 6abe913..95d1217 100644--- a/arch/powerpc/platforms/44x/Kconfig +++ b/arch/powerpc/platforms/44x/Kconfig@@ -77,6 +77,16 @@ config CANYONLANDS help This option enables support for the AMCC PPC460EX evaluation board.=20 +config ARCHES + bool "Arches" + depends on 44x + default n + select 460GT + select PCI + select PPC4xx_PCI_EXPRESS + help + This option enables support for the AMCC PPC460GT Arches board.
If you do want to have explicit support for Arches, that's fine. Look at how Yosemite is supported. It just reuses Bamboo. You could do the same.
quoted hunk ↗ jump to hunk
config YOSEMITE bool "Yosemite" depends on 44x@@ -149,6 +159,14 @@ config 460EX select IBM_NEW_EMAC_ZMII select IBM_NEW_EMAC_TAH=20 +config 460GT + bool + select PPC_FPU + select IBM_NEW_EMAC_EMAC4 + select IBM_NEW_EMAC_RGMII + select IBM_NEW_EMAC_ZMII + select IBM_NEW_EMAC_TAH
I don't see a reason to add this at all. 460EX and 460GT select the same set of options.
quoted hunk ↗ jump to hunk
# 44x errata/workaround config symbols, selected by the CPU models above config IBM440EP_ERR42 booldiff --git a/arch/powerpc/platforms/44x/Makefile b/arch/powerpc/platforms=
/44x/Makefile
quoted hunk ↗ jump to hunk
index 774165f..86a4823 100644--- a/arch/powerpc/platforms/44x/Makefile +++ b/arch/powerpc/platforms/44x/Makefile@@ -9,3 +9,4 @@ obj-$(CONFIG_RAINIER) +=3D rainier.o obj-$(CONFIG_WARP) +=3D warp.o obj-$(CONFIG_WARP) +=3D warp-nand.o obj-$(CONFIG_CANYONLANDS) +=3D canyonlands.o +obj-$(CONFIG_ARCHES) +=3D arches.o
Here you would just have: obj-$(CONFIG_ARCHES) +=3D cayonlands.o
quoted hunk ↗ jump to hunk
diff --git a/arch/powerpc/platforms/44x/arches.c b/arch/powerpc/platforms=
/44x/arches.c
quoted hunk ↗ jump to hunk
new file mode 100644 index 0000000..6d6aa66--- /dev/null +++ b/arch/powerpc/platforms/44x/arches.c
And then you don't need this file at all. Just add a "amcc,canyonlands" string to your root node compatible property. josh