ppc4xx: Add GDsys CompactCenter board support.
PATCH v4 1/1 ppc4xx: Add GDsys CompactCenter board support.
Board support for the Guntermann & Drunck CompactCenter and DevCon-Center.
Based on the AMCC Canyonlands board support by Stefan Roese.
---
Changes since v1:
- removed dead code
- whitespace cleanup
- simplified code for nand/nor distinction in board/gdsys/compactcenter/bootstra p.c
Changes since v2:
- removed get_cpu_num() from board/gdsys/compactcenter/compactcenter.c
- use __ft_board_setup() instead of ft_cpu_setup()
- cleanup CompactCenter/Canyonlands mixup
- reformatted CONFIG_SYS_4xx_GPIO_TABLE. Lines are > 80 chars but readable.
Changes since v3:
- took nor fixup from canyonlands (This still depends on __ft_board_setup() working properly, which is not the case yet)
- use chip_config instead of bootstrap command
MAINTAINERS | 2 + MAKEALL | 2 + Makefile | 8 + board/gdsys/compactcenter/Makefile | 53 ++++ board/gdsys/compactcenter/chip_config.c | 87 ++++++ board/gdsys/compactcenter/compactcenter.c | 312 ++++++++++++++++++++ board/gdsys/compactcenter/config.mk | 41 +++ board/gdsys/compactcenter/init.S | 97 +++++++ board/gdsys/compactcenter/u-boot.lds | 144 ++++++++++ include/configs/compactcenter.h | 437 +++++++++++++++++++++++++++++ 10 files changed, 1183 insertions(+), 0 deletions(-) create mode 100644 board/gdsys/compactcenter/Makefile create mode 100644 board/gdsys/compactcenter/chip_config.c create mode 100644 board/gdsys/compactcenter/compactcenter.c create mode 100644 board/gdsys/compactcenter/config.mk create mode 100644 board/gdsys/compactcenter/init.S create mode 100644 board/gdsys/compactcenter/u-boot.lds create mode 100644 include/configs/compactcenter.h
MAINTAINERS +2 -0
@@ -135,6 +135,8 @@ Jon Diekema <[email protected]> Dirk Eibach <[email protected]> + compactcenter PPC460EX + devconcenter PPC460EX gdppc440etx PPC440EP/GR neo PPC405EP
MAKEALL +2 -0
@@ -184,6 +184,7 @@ LIST_4xx=" \ canyonlands \ canyonlands_nand \ CMS700 \ + compactcenter \ CPCI2DP \ CPCI405 \ CPCI4052 \
@@ -194,6 +195,7 @@ LIST_4xx=" \ csb272 \ csb472 \ DASA_SIM \ + devconcenter \ DP405 \ DU405 \ DU440 \
Makefile +8 -0
@@ -1308,6 +1308,14 @@ CATcenter_33_config: unconfig CMS700_config: unconfig @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd +# Compact-Center & DevCon-Center use different U-Boot images +compactcenter_config \ +devconcenter_config: unconfig + @mkdir -p $(obj)include + @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ + tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h + @$(MKCONFIG) -n $@ -a compactcenter ppc ppc4xx compactcenter gdsys + CPCI2DP_config: unconfig @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
board/gdsys/compactcenter/Makefile new file +53 -0
53 lines not on this page · raw message
board/gdsys/compactcenter/chip_config.c new file +87 -0
87 lines not on this page · raw message
board/gdsys/compactcenter/compactcenter.c new file +312 -0
312 lines not on this page · raw message
board/gdsys/compactcenter/config.mk new file +41 -0
41 lines not on this page · raw message
board/gdsys/compactcenter/init.S new file +97 -0
97 lines not on this page · raw message
board/gdsys/compactcenter/u-boot.lds new file +144 -0
144 lines not on this page · raw message
include/configs/compactcenter.h new file +437 -0
437 lines not on this page · raw message
Signature · 1 line
1.5.6.5
PATCH v4 1/1 ppc4xx: Add GDsys CompactCenter board support.
Hi Dirk,
Quoted 3 lines · On Friday 24 July 2009 11:25:55 Dirk Eibach wrote:
Changes since v3:
- took nor fixup from canyonlands (This still depends on__ft_board_setup()working properly, which is not the case yet)
I just checked and noticed that this fixup I introduced a while ago for the physical NOR address is not needed any more. Please give this version a try, completely without additional fixup:
board/amcc/canyonlands/canyonlands.c +0 -15
@@ -579,23 +579,8 @@ extern void __ft_board_setup(void *blob, bd_t *bd);void ft_board_setup (void *blob,bd_t *bd) { -u32 val[4 ]; -int rc; -__ft_board_setup (blob, bd); -/* Fixup NOR mapping */ - val[0 ] =CONFIG_SYS_NOR_CS ;/* chip select number */ - val[1 ] =0 ;/* always 0 */ - val[2 ] =CONFIG_SYS_FLASH_BASE_PHYS_L ;/* we fixed up this address */ - val[3 ] = gd->bd->bi_flashsize; - rc =fdt_find_and_setprop (blob,"/plb/opb/ebc" ,"ranges" , - val,sizeof (val),1 ); -if (rc) { -printf ("Unable to update property NOR mapping, err=%s\n" , -fdt_strerror (rc)); - } -if (gd->board_type ==BOARD_CANYONLANDS_SATA ) {/* * When SATA is selected we need to disable the first PCIe
And let me know if this works for you. Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================