[PATCH] Add AMCC Arches 460GT eval board support to platforms/44x
Josh Boyer
jwboyer at linux.vnet.ibm.com
Wed Jul 16 21:50:25 EST 2008
On Tue, 15 Jul 2008 22:33:26 -0700
fkan at amcc.com wrote:
> From: Victor Gallardo <vgallard at amcc.com>
>
> ppc4xx: Add AMCC Arches 460GT eval board support
>
> Signed-off-by: Victor Gallardo <vgallard at amcc.com>
From 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 +++++++++++++++++++++++++++++++++++
> 3 files changed, 95 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/platforms/44x/arches.c
>
> diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig
> 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.
>
> +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.
> config YOSEMITE
> bool "Yosemite"
> depends on 44x
> @@ -149,6 +159,14 @@ config 460EX
> select IBM_NEW_EMAC_ZMII
> select IBM_NEW_EMAC_TAH
>
> +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.
> # 44x errata/workaround config symbols, selected by the CPU models above
> config IBM440EP_ERR42
> bool
> diff --git a/arch/powerpc/platforms/44x/Makefile b/arch/powerpc/platforms/44x/Makefile
> index 774165f..86a4823 100644
> --- a/arch/powerpc/platforms/44x/Makefile
> +++ b/arch/powerpc/platforms/44x/Makefile
> @@ -9,3 +9,4 @@ obj-$(CONFIG_RAINIER) += rainier.o
> obj-$(CONFIG_WARP) += warp.o
> obj-$(CONFIG_WARP) += warp-nand.o
> obj-$(CONFIG_CANYONLANDS) += canyonlands.o
> +obj-$(CONFIG_ARCHES) += arches.o
Here you would just have:
obj-$(CONFIG_ARCHES) += cayonlands.o
> diff --git a/arch/powerpc/platforms/44x/arches.c b/arch/powerpc/platforms/44x/arches.c
> 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
More information about the Linuxppc-dev
mailing list