[U-Boot] [PATCH] ppc4xx: Big cleanup of PPC4xx defines

This patch cleans up multiple issues of the 4xx register (mostly DCR, SDR, CPR, etc) definitions:
- Change lower case defines to upper case (plb4_acr -> PLB4_ACR) - Change the defines to better match the names from the user's manuals (e.g. cprpllc -> CPR0_PLLC) - Removal of some unused defines
Please test this patch intensive on your PPC4xx platform. Even though I tried not to break anything and tested successfully on multiple 4xx AMCC platforms, testing on custom platforms is recommended.
Signed-off-by: Stefan Roese sr@denx.de --- board/amcc/acadia/acadia.c | 12 +- board/amcc/acadia/memory.c | 18 +- board/amcc/acadia/pll.c | 52 ++-- board/amcc/bamboo/bamboo.c | 104 ++++---- board/amcc/bamboo/flash.c | 2 +- board/amcc/bubinga/bubinga.c | 4 +- board/amcc/bubinga/flash.c | 20 +- board/amcc/canyonlands/canyonlands.c | 4 +- board/amcc/ebony/ebony.c | 32 +- board/amcc/katmai/katmai.c | 6 +- board/amcc/luan/luan.c | 18 +- board/amcc/ocotea/ocotea.c | 48 ++-- board/amcc/redwood/redwood.c | 18 +- board/amcc/sequoia/sequoia.c | 60 ++-- board/amcc/taihu/taihu.c | 6 +- board/amcc/taishan/showinfo.c | 70 +++--- board/amcc/taishan/taishan.c | 44 ++-- board/amcc/walnut/flash.c | 20 +- board/amcc/yosemite/yosemite.c | 58 ++-- board/amcc/yucca/flash.c | 2 +- board/amcc/yucca/yucca.c | 20 +- board/cray/L1/L1.c | 38 ++-- board/cray/L1/init.S | 24 +- board/csb272/csb272.c | 18 +- board/csb272/init.S | 50 ++-- board/csb472/csb472.c | 18 +- board/csb472/init.S | 54 ++-- board/dave/PPChameleonEVB/PPChameleonEVB.c | 6 +- board/dave/PPChameleonEVB/flash.c | 8 +- board/eric/eric.c | 2 +- board/eric/flash.c | 20 +- board/eric/init.S | 126 ++++---- board/esd/apc405/apc405.c | 26 +- board/esd/ar405/flash.c | 8 +- board/esd/ash405/ash405.c | 2 +- board/esd/ash405/flash.c | 8 +- board/esd/canbt/canbt.c | 8 +- board/esd/canbt/flash.c | 10 +- board/esd/cms700/cms700.c | 2 +- board/esd/cms700/flash.c | 8 +- board/esd/cpci2dp/cpci2dp.c | 12 +- board/esd/cpci2dp/flash.c | 10 +- board/esd/cpci405/cpci405.c | 22 +- board/esd/cpci405/flash.c | 20 +- board/esd/cpciiser4/flash.c | 10 +- board/esd/dp405/dp405.c | 2 +- board/esd/dp405/flash.c | 8 +- board/esd/du405/du405.c | 8 +- board/esd/du405/flash.c | 20 +- board/esd/du440/du440.c | 56 ++-- board/esd/hh405/flash.c | 8 +- board/esd/hh405/hh405.c | 2 +- board/esd/hub405/flash.c | 8 +- board/esd/hub405/hub405.c | 2 +- board/esd/ocrtc/flash.c | 20 +- board/esd/ocrtc/ocrtc.c | 2 +- board/esd/pci405/flash.c | 8 +- board/esd/pci405/pci405.c | 28 +- board/esd/plu405/flash.c | 8 +- board/esd/plu405/plu405.c | 2 +- board/esd/pmc405/pmc405.c | 6 +- board/esd/pmc405de/pmc405de.c | 2 +- board/esd/pmc440/pmc440.c | 66 +++--- board/esd/voh405/flash.c | 8 +- board/esd/voh405/voh405.c | 2 +- board/esd/vom405/flash.c | 8 +- board/esd/vom405/vom405.c | 2 +- board/esd/wuh405/flash.c | 8 +- board/esd/wuh405/wuh405.c | 2 +- board/exbitgen/exbitgen.c | 16 +- board/exbitgen/init.S | 104 ++++---- board/g2000/g2000.c | 14 +- board/gdsys/compactcenter/compactcenter.c | 2 +- board/gdsys/dlvision/dlvision.c | 2 +- board/gdsys/gdppc440etx/gdppc440etx.c | 52 ++-- board/gdsys/neo/neo.c | 2 +- board/jse/init.S | 14 +- board/jse/jse.c | 8 +- board/jse/sdram.c | 80 +++--- board/korat/korat.c | 64 ++-- board/lwmon5/lwmon5.c | 52 ++-- board/mpl/common/flash.c | 58 ++-- board/mpl/mip405/init.S | 74 +++--- board/mpl/mip405/mip405.c | 132 +++++----- board/mpl/pip405/init.S | 74 +++--- board/mpl/pip405/pip405.c | 82 +++--- board/netstal/hcu4/hcu4.c | 2 +- board/netstal/hcu5/hcu5.c | 30 +- board/netstal/hcu5/sdram.c | 4 +- board/netstal/mcu25/mcu25.c | 6 +- board/pcs440ep/pcs440ep.c | 58 ++-- board/prodrive/alpr/alpr.c | 6 +- board/prodrive/p3p440/p3p440.c | 22 +- board/sandburst/common/sb_common.c | 2 +- board/sandburst/karef/karef.c | 36 ++-- board/sandburst/metrobox/metrobox.c | 36 ++-- board/sbc405/sbc405.c | 2 +- board/sc3/init.S | 130 +++++----- board/sc3/sc3.c | 96 +++--- board/snmc/qs850/flash.c | 16 +- board/snmc/qs860t/flash.c | 16 +- board/tb0229/flash.c | 20 +- board/w7o/init.S | 66 +++--- board/w7o/w7o.c | 16 +- board/xes/xpedite1000/xpedite1000.c | 26 +- board/zeus/zeus.c | 6 +- common/cmd_reginfo.c | 146 +++++----- cpu/ppc4xx/40x_spd_sdram.c | 2 +- cpu/ppc4xx/44x_spd_ddr.c | 20 +- cpu/ppc4xx/4xx_pci.c | 10 +- cpu/ppc4xx/4xx_uart.c | 28 +- cpu/ppc4xx/cpu.c | 38 ++-- cpu/ppc4xx/cpu_init.c | 68 +++--- cpu/ppc4xx/fdt.c | 4 +- cpu/ppc4xx/sdram.c | 4 +- cpu/ppc4xx/speed.c | 52 ++-- cpu/ppc4xx/start.S | 112 ++++---- cpu/ppc4xx/usbdev.c | 4 +- drivers/mtd/nand/ndfc.c | 4 +- drivers/net/4xx_enet.c | 136 +++++----- include/configs/W7OLMC.h | 4 +- include/configs/W7OLMG.h | 4 +- include/ppc405.h | 397 +++++++++----------------- include/ppc440.h | 432 +++++++++------------------- include/ppc4xx.h | 106 +++---- nand_spl/board/amcc/bamboo/sdram.c | 4 +- post/cpu/ppc4xx/ether.c | 50 ++-- post/cpu/ppc4xx/uart.c | 22 +- 128 files changed, 2088 insertions(+), 2399 deletions(-)
This patch is too big for the mailing list (> 350k). Please find it for review in the "4xx-register-cleanup" branch of the u-boot-ppc4xx repository:
http://git.denx.de/?p=u-boot/u-boot- ppc4xx.git;a=commit;h=90fa22707f3b23d4ecebfe84181699ce606035bf
Cheers, 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@denx.de

On Wednesday 09 September 2009 17:30:29 Stefan Roese wrote:
This patch cleans up multiple issues of the 4xx register (mostly DCR, SDR, CPR, etc) definitions:
- Change lower case defines to upper case (plb4_acr -> PLB4_ACR)
- Change the defines to better match the names from the user's manuals (e.g. cprpllc -> CPR0_PLLC)
- Removal of some unused defines
Please test this patch intensive on your PPC4xx platform. Even though I tried not to break anything and tested successfully on multiple 4xx AMCC platforms, testing on custom platforms is recommended.
Applied to u-boot-ppc4xx. Thanks.
Cheers, 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@denx.de
participants (1)
-
Stefan Roese